// 请求参数
export type ProcedureParams = PageCommonParams & SearchParams;

export interface SearchParams {
    procedureCode?: string;
    procedureName?: string;
    creator?: string;
    beginTime?: string;
    endTime?: string;
}
// 返回参数
export type ProcedureResponse = ResponseListCommon<WorkingProcedure>;

export interface WorkingProcedure {
    id: string;
    processCode: string;
    processName: string;
    workingProcedureEquipments: WorkingProcedureEquipments[];
    remarks: string;
    creator: string;
    createTime: string;
}

export interface WorkingProcedureAuxiliary {
    [key: string]: any;
    pMarkId?: string | number;
    markId?: string | number;
    auxiliaryId: string | null;
    auxiliaryResourceName: string | null;
    auxiliaryDataCoding: string | null;
}

export interface WorkingProcedureEquipments {
    [key: string]: any;
    markId?: string | number;
    equipmentId: string | null;
    deviceName: string | null;
    equipmentNumber: string | null;
    workingProcedureAuxiliary: WorkingProcedureAuxiliary[];
}

// 新增或编辑data
export interface ProcedureData {
    id?: number | string;
    equipmentCode?: string;
    processCode: string | null;
    processName: string | null;
    remarks: string | null;
    workingProcedureEquipments: WorkingProcedureEquipments[];
}
